IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[painting_authorship]') AND TYPE in (N'U'))
BEGIN
CREATE Table painting_authorship
(
    painting_authorship_id INT IDENTITY(1,1) NOT NULL,
	painting_id int not null,
	authorship_id int not null,
    create_date DATETIME DEFAULT(GETDATE()),
    update_date DATETIME
) 
END
GO